<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\facade\Route;
Route::get('think', function () {
    return 'hello,ThinkPHP5!';
});

Route::get('hello/:name', 'index/hello');
Route::miss('');
Route::group('',function (){

    Route::group('admin',function (){
        //[新]地图方法
        Route::post("area/getDataAction","admin/user.Area/getDataAction");
        //商家商品导入
        Route::post("shop/addExcel","admin/shop.product/addExcel");
        //商品SKU模板导出
        Route::get("shop/exportExcel","admin/shop.product/exportExcel");
        //[20200416]库存更新导入
        Route::post('warehouse/setProductGeneralSkuExcel','admin/warehouse.warehouseList/setProductGeneralSkuExcel');

        //线上商家商品管理
        Route::post("shop/onLineProductList","admin/shop.product/onLineProductList");
        //线上商家发布商品
        Route::post("shop/onLineCreateProduct","admin/shop.product/createProduct");
        //线上商家编辑商品
        Route::post('shop/onLineEditProduct','admin/shop.product/editProduct');
        //线上商家商品详情
        Route::post('shop/onLineDetailProduct','admin/shop.product/detailProduct');
        //线上商家商品的上下架
        Route::post('shop/onLineIsPublish','admin/shop.product/productIsPublish');
        //线上商家商品的改分组
        Route::post('shop/onLineChangeGroup','admin/shop.product/productChangeGroup');
        //线上商家订单列表
        Route::post("shop/onLineOrderList","admin/shop.order/onLineOrder");
        //线上商家订单详情
        Route::post("shop/onLineDetailOrder","admin/shop.order/shopOrderDetail");
        //线上商家生成发货单
        Route::post('shop/onLineSure','admin/shop.order/makeOrder');
        //线上商家下的维权订单
        Route::post('shop/onLineReturnOrder','admin/shop.order/onLineReturnOrder');
        //线上商家下审核退款维权的订单
        Route::post('shop/onLineCheckReturnOrder','admin/shop.order/checkReturnOrder');
        //线上商家下确认完成退款操作
        Route::post('shop/onLineSureReturnOrder','admin/shop.order/checkReturnOrder');
        //线上商家下确认完成退款操作
        Route::post('shop/onLineSureReturnOrder','admin/shop.order/checkReturnOrder');
        //线上商家评价
        Route::post('shop/onLineShopOrderReview','admin/shop.order/shopOrderReview');

        //品牌店发布商品
        Route::post("shop/brandCreateProduct","admin/shop.product/createProduct");
        //品牌店商品管理
        Route::post("shop/brandProductList","admin/shop.product/onLineProductList");
        //品牌店商家修改分组
        Route::post('shop/brandChangeGroup','admin/shop.product/productChangeGroup');
        //品牌店商家编辑商品
        Route::post('shop/brandEditProduct','admin/shop.product/editProduct');
        //品牌店商家商品详情
        Route::post('shop/brandDetailProduct','admin/shop.product/detailProduct');
        //品牌店商家商品的上下架
        Route::post('shop/brandIsPublish','admin/shop.product/productIsPublish');
        //品牌店订单列表
        Route::post("shop/brandOrderList","admin/shop.order/onLineOrder");
        //品牌店订单详情
        Route::post("shop/brandDetailOrder","admin/shop.order/shopOrderDetail");
        //品牌店生成发货单
        Route::post('shop/brandSure','admin/shop.order/makeOrder');
        //品牌店退款维权
        Route::post("shop/brandReturnOrderList","admin/shop.order/onLineReturnOrder");
        //品牌店下审核退款维权的订单
        Route::post('shop/brandCheckReturnOrder','admin/shop.order/checkReturnOrder');
        //品牌店下确认完成退款操作
        Route::post('shop/brandSureReturnOrder','admin/shop.order/checkReturnOrder');
        //品牌店下面的 总仓库商品
        Route::post('warehouse/brandProductGeneral','admin/warehouse.warehouse/warehouse_product_general');
        //品牌店下门店仓的商品
        Route::post('warehouse/brandProductBrand','admin/warehouse.warehouse/warehouse_product_general');
        //品牌店下的预警列表
        Route::post('warehouse/brandProductWarning','admin/warehouse.warehouse/warehouseList');
        //品牌店下的调批单列表
        Route::post('warehouse/brandApprovalList','admin/warehouse.warehouseList/approval_list');
        //品牌店下的出库单列表
        Route::post('warehouse/brandDepositList','admin/warehouse.warehouseList/approval_list');
        //品牌店下的补货单列表
        Route::post('warehouse/brandReplenishmentList','admin/warehouse.warehouseList/approval_list');
        //品牌店下的退货单列表
        Route::post('warehouse/brandReturnList','admin/warehouse.warehouseList/approval_list');
        //品牌店下的申请调批单
        Route::post('warehouse/brandApprovalAdd','admin/warehouse.warehouseList/approval_add');
        //品牌店下的取消调批单
        Route::post('warehouse/brandApprovalCancel','admin/warehouse.warehouseList/approval_check');
        //品牌店下的确认完成调批单
        Route::post('warehouse/brandApprovalComplete','admin/warehouse.warehouseList/approval_check');
        //品牌店下的取消补货单
        Route::post('warehouse/brandReplenishmentCancel','admin/warehouse.warehouseList/approval_check');
        //品牌店下的确认完成补货单
        Route::post('warehouse/brandReplenishmentComplete','admin/warehouse.warehouseList/approval_check');
        //品牌店下的申请退货单
        Route::post('warehouse/brandReturnAdd','admin/warehouse.warehouseList/approval_add');
        //品牌店下的取消退货单
        Route::post('warehouse/brandReturnCancel','admin/warehouse.warehouseList/approval_check');
        //品牌店下的确认完成退货单
        Route::post('warehouse/brandReturnComplete','admin/warehouse.warehouseList/approval_check');
        //品牌店下的评价
        Route::post('shop/brandOrderReview','admin/shop.order/shopOrderReview');
        //贸易商商品管理
        Route::post("shop/tradersProductList","admin/shop.product/onLineProductList");
        //贸易商发布商品
        Route::post("shop/tradersCreateProduct","admin/shop.product/createProduct");
        //贸易商家修改分组
        Route::post('shop/tradersChangeGroup','admin/shop.product/productChangeGroup');
        //贸易商家编辑商品
        Route::post('shop/tradersEditProduct','admin/shop.product/editProduct');
        //贸易商商品详情
        Route::post('shop/tradersDetailProduct','admin/shop.product/detailProduct');
        //贸易商订单列表
        Route::post("shop/tradersOrderList","admin/shop.order/onLineOrder");
        //贸易商退款维权
        Route::post("shop/tradersReturnOrderList","admin/shop.order/onLineReturnOrder");
        //交易大厅下面的 总仓库商品
        Route::post('warehouse/tradersProductGeneral','admin/warehouse.warehouse/warehouse_product_general');
        //中转仓下的商品
        Route::post('warehouse/tradersProductTraders','admin/warehouse.warehouse/warehouse_product_general');
        //交易大厅下的预警列表
        Route::post('warehouse/tradersProductWarning','admin/warehouse.warehouse/warehouseList');
        //交易大厅下的审批单列表
        Route::post('warehouse/tradersApprovalList','admin/warehouse.warehouseList/approval_list');
        //交易大厅下的出库单列表
        Route::post('warehouse/tradersDepositList','admin/warehouse.warehouseList/approval_list');
        //交易大厅下的补货单列表
        Route::post('warehouse/tradersReplenishmentList','admin/warehouse.warehouseList/approval_list');
        //交易大厅下的退货单列表
        Route::post('warehouse/tradersReturnList','admin/warehouse.warehouseList/approval_list');
        //交易大厅下申请补货单
        Route::post('warehouse/tradersReplenishmentAdd','admin/warehouse.warehouseList/approval_add');
        //交易大厅下取消补货单
        Route::post('warehouse/tradersReplenishmentCancel','admin/warehouse.warehouseList/approval_check');
        //交易大厅下确认完成补货单
        Route::post('warehouse/tradersReplenishmentComplete','admin/warehouse.warehouseList/approval_check');
        //交易大厅下的评价
        Route::post('shop/tradersOrderReview','admin/shop.order/shopOrderReview');
        //退款维权订单详情
        Route::post('shop/ReturnOrderDetail','admin/shop.order/ReturnOrderDetail');


        //登录入口
        Route::post('login/adminLogin','admin/login/login');
        //员工管理列表
        Route::post('admin/getAdminList','admin/account.admin/getAdminList');
        //员工添加
        Route::post('admin/adminAdd','admin/account.admin/adminAdd');
        //员工账号编辑
        Route::post('admin/adminEdit','admin/account.admin/adminEdit');
        //员工账号删除
        Route::post('admin/adminDelete','admin/account.admin/adminDelete');
        //角色管理列表
        Route::post('admin/getGroupList','admin/account.admin/getGroupList');
        //角色添加
        Route::post('admin/authGroupAdd','admin/account.admin/authGroupAdd');
        //角色的后台权限
        Route::post('admin/authGroupRule','admin/account.admin/authGroupRule');
        //角色编辑
        Route::post('admin/authGroupEdit','admin/account.admin/authGroupEdit');
        //角色删除
        Route::post('admin/authGroupDelete','admin/account.admin/authGroupDelete');
        //用户充值金额列表
        Route::post('account/moneyCard','admin/account.money/money_card');
        //用户充值金额添加
        Route::post('account/moneyCardAdd','admin/account.money/moneyCardAdd');
        //用户充值金额修改
        Route::post('account/moneyCardEdit','admin/account.money/moneyCardEdit');
        //用户充值金额删除
        Route::post('account/moneyCardDelete','admin/account.money/moneyCardDelete');

        //-------------------------
        // 钱包模块 2019-12-2 Inke
        //-------------------------
        //[初次全局]给所有没有钱包的用户新建钱包
        Route::post('money/insertUserMoney','admin/money.money/insertUserMoney');
        //查询钱包模块设置
        Route::post('money/getMoneyConfigInfo','admin/money.money/getMoneyConfigInfo');
        //设置钱包开启关闭 [0关闭 1开启]
        Route::post('money/updateConfigIsOpen','admin/money.money/updateConfigIsOpen');
        //设置钱包分销规则说明
        Route::post('money/updateConfigInviteRule','admin/money.money/updateConfigInviteRule');
        //设置钱包提现规则说明
        Route::post('money/updateConfigOutRule','admin/money.money/updateConfigOutRule');
        //设置钱包邀请页封面图
        Route::post('money/updateConfigInviteImg','admin/money.money/updateConfigInviteImg');
        //设置安卓下载二维码
        Route::post('money/updateConfigDownAdImg','admin/money.money/updateConfigDownAdImg');
        //设置IOS下载二维码
        Route::post('money/updateConfigDownIosImg','admin/money.money/updateConfigDownIosImg');

        //查询提现审核列表
        Route::post('money/getMoneyAuditList','admin/money.money/getMoneyAuditList');

        //商家等级列表
        Route::post('account/levelList','admin/account.level/levelList');
        //商家等级编辑
        Route::post('account/levelEdit','admin/account.level/levelEdit');
        //关键字列表
        Route::post('account/keywordList','admin/account.keyword/keywordList');

        //关键字添加
        Route::post('account/keywordAdd','admin/account.keyword/keywordAdd');
        //关键字修改
        Route::post('account/keywordEdit','admin/account.keyword/keywordEdit');
        //关键字删除
        Route::post('account/keywordDelete','admin/account.keyword/keywordDelete');
        // 广告位列表
        Route::post('account/carouselList','admin/account.carousel/carouselList');
        // 广告位保存
        Route::post('account/carouselEdit','admin/account.carousel/carouselEdit');

        // 用户协议列表
        Route::post('config/agreement','admin/config.config/agreement');

        // 用户协议修改
        Route::post('config/agreementEdit','admin/config.config/agreementEdit');

        // 用户协议详情
        Route::post('config/agreementDetail','admin/config.config/agreementDetail');

        // 查询运费的页面信息
        Route::post('config/freightConfig','admin/config.Freight/freightConfig');
        // 修改运费模板
        Route::post('config/freightEdit','admin/config.Freight/freightEdit');
        //获取/修改交易大厅自提地址
        Route::post('config/getToTheAddress','admin/config.Config/getToTheAddress');
        Route::post('config/setToTheAddress','admin/config.Config/setToTheAddress');
        //前台数据
        Route::post('config/indexData','admin/config.Config/indexData');
        //前台数据修改
        Route::post('config/indexDataEdit','admin/config.Config/indexDataEdit');
        //账号修改密码
        Route::post('config/changePassword','admin/config.Config/changePassword');
        //资讯分类
        Route::post('admin/newsCategory','admin/news.news/newsCategory');
        //资讯列表
        Route::post('admin/newsList','admin/news.news/newsList');
        //资讯添加
        Route::post('admin/newsAdd','admin/news.news/newsAdd');
        //资讯修改
        Route::post('admin/newsEdit','admin/news.news/newsEdit');
        //资讯删除
        Route::post('admin/newsDelete','admin/news.news/newsDelete');

        //商家首页统计
        Route::post('user/shopStatistics','admin/user.user/shopStatistics');
        //首页统计
        Route::post('user/homeStatistics','admin/user.user/homeStatistics');
        //用户列表
        Route::post('user/userList','admin/user.user/user_list');
        //用户封停
        Route::post('user/userCheck','admin/user.user/user_check');
        //修改用户会员状态
        Route::post('user/userEdit','admin/user.user/user_edit');
        //用户申请的企业号列表
        Route::post('user/enterPrise','admin/user.user/user_enterprise');
        //用户申请的企业号详情
        Route::post('user/enterPriseDetail','admin/user.user/user_enterprise_detail');
        //用户申请的企业号审核
        Route::post('user/enterpriseCheck','admin/user.user/user_enterprise_check');
        //用户意见反馈列表
        Route::post('user/userFeedback','admin/user.user/userFeedback');
        //[容错全局方法]全员生成不重复的六位邀请码(大小写敏感)
        Route::post('user/updateInviteCode','admin/user.user/updateInviteCode');


        //获取省份
        Route::get('address/province','admin/Address/province');
        //通过省份ID获取下级城市
        Route::get('address/city/:id','admin/Address/city',[],['id'=>'\d+']);
        //通过城市ID获取下级地区
        Route::get('address/area/:id','admin/Address/area',[],['id'=>'\d+']);



        //获取商家类型
        Route::get('shop/type/all','admin/shop.shopType/shopTypeAll');
        //获取商家主营类目
        Route::get('shop/category/all','admin/shop.shopCategory/categoryAll');
        //新增商家主营类目
        Route::post('shop/category/create','admin/shop.shopCategory/createCategory');
        //修改商家主营类目名称
        Route::post('shop/category/edit','admin/shop.shopCategory/editCategory');
        //[新增]删除商家主营类目名称
        Route::post('shop/category/delete','admin/shop.shopCategory/deleteCategory');
        //上传商家logo
        Route::post('shop/upload/logo','admin/upload/index');
        //上传商家营业执照
        Route::post('shop/upload/license','admin/upload/index');
        //上传商家身份证正面
        Route::post('shop/upload/card/front','admin/upload/index');
        //上传商家身份证反面
        Route::post('shop/upload/card/back','admin/upload/index');
        //上传商家手持省份证
        Route::post('shop/upload/card/hand','admin/upload/index');
        //添加商家
        Route::post('shop/create','admin/shop.shop/createShop');
        //编辑商家
        Route::post('shop/edit','admin/shop.shop/editShop');
        //删除商家
        Route::post('shop/deleteShop','admin/shop.shop/deleteShop');
        //分配商家账号
        Route::post('shop/account','admin/shop.shop/changAccount');
        //商家列表
        Route::post('shop/list','admin/shop.shop/shopList');
        //商家列表
        Route::post('shop/getShopList','admin/shop.shop/getShopList');
        //未审核商家列表
        Route::post('shop/shopNoCheckList','admin/shop.shop/shopNoCheckList');
        //审核商家
        Route::post('shop/CheckShop','admin/shop.shop/CheckShop');
        //绑定账号
        Route::post('shop/bindaccount','admin/shop.shop/bindaccount');
        //商家封停和取消封停
        Route::post('shop/shopAction',"admin/shop.shop/shopAction");
        //平台提现列表
        Route::post('shop/WithdrawList','admin/shop.shop/shopWithdrawList');
        //商家提现列表
        Route::post('shop/shopWithdrawList','admin/shop.shop/shopWithdrawList');
        //商家申请提现
        Route::post('shop/shopWithdrawApply','admin/shop.shop/shopWithdrawApply');
        //商家详情
        Route::post('shop/detail','admin/shop.shop/shop_detail');
        //添加商品分组
        Route::post('shop/group/create','admin/shop.shopGroup/createShopGroup');
        //查询商品分组
        Route::post('shop/group/list','admin/shop.shopGroup/shopGroupList');
        //通过id更新商品分组下的某一个
        Route::post('shop/group/update','admin/shop.shopGroup/updateShopGroup');
        //通过id删除商品分组下的某一个
        Route::post('shop/group/delete','admin/shop.shopGroup/deleteShopGroup');
        //创建商品
        Route::post('shop/product/create','admin/shop.product/createProduct');
        //编辑商品
        Route::post('shop/product/edit','admin/shop.product/editProduct');
        Route::post('shop/product/delete','admin/shop.product/deleteProduct');
        //商品详情
        Route::post('shop/product/detail','admin/shop.product/detailProduct');
        //查询商品
        Route::post('shop/product/searchProduct','admin/shop.product/searchProduct');
        //查询商家下的商品
        Route::post('shop/product/searchUIDProduct','admin/shop.product/searchUIDProduct');

        //通过商品分类商品分类查询分类下的规格组
        Route::post('shop/product/specList','admin/shop.product/categorySpec');
        //商品列表
        Route::post('shop/product/list','admin/shop.product/productList');


        //获取商品列表
        Route::post('shop/product/getProductList','admin/shop.product/getProductList');



        //上传封面图
        Route::post('shop/product/banner','admin/upload/index');
        //交易大厅列表
        Route::post('shop/tradeList','admin/shop.trade/hallList');
        Route::post('shop/tradeAreaAdd','admin/shop.trade/hallAdd');
        Route::post('shop/tradeAreaEdit','admin/shop.trade/hallEdit');
        Route::post('shop/tradeAreaClear','admin/shop.trade/hallClear');
        Route::post('shop/tradeProductList','admin/shop.trade/productList');
        Route::post('shop/tradeProductPublish','admin/shop.trade/productPublish');
        Route::post('shop/tradeProductAdd','admin/shop.trade/productAdd');
        Route::post('shop/tradeReplaceProduct','admin/shop.trade/replaceProduct');
        Route::post('shop/returnYouLike','admin/shop.product/returnYouLike');
        //交易大厅删除商品
        Route::post('shop/tradeProductDelete','admin/shop.trade/tradeProductDelete');
        //全部评价
        Route::post('shop/OrderReview','admin/shop.order/shopOrderReview');

        //线上订单列表
        Route::post('shop/onLineShopOrder','admin/shop.order/shopOrder');
        //品牌店订单列表
        Route::post('shop/brandShopOrder','admin/shop.order/shopOrder');
        //贸易商订单列表
        Route::post('shop/tradersShopOrder','admin/shop.order/shopOrder');

        //线上商家订单详情
        Route::post('shop/onLineOrderDetail','admin/shop.order/shopOrderDetail');
        //品牌店订单详情
        Route::post('shop/brandOrderDetail','admin/shop.order/shopOrderDetail');
        //贸易商订单详情
        Route::post('shop/tradersOrderDetail','admin/shop.order/shopOrderDetail');

        //线上商家生成发货单
        Route::post('shop/onLineMakeOrder','admin/shop.order/makeOrder');
        //品牌店生成发货单
        Route::post('shop/brandMakeOrder','admin/shop.order/makeOrder');
        //贸易商生成发货单
        Route::post('shop/tradersMakeOrder','admin/shop.order/makeOrder');
        //修改订单状态(status)
        Route::post('shop/editOrderStatus','admin/shop.order/editOrderStatus');

        //商品分类列表
        Route::post('mall/categoryList','admin/mall.productCategory/categoryList');
        //商品分类添加
        Route::post('mall/categoryAdd','admin/mall.productCategory/categoryAdd');
        //商品分类修改
        Route::post('mall/categoryEdit','admin/mall.productCategory/categoryEdit');
        //商品分类删除
        Route::post('mall/categoryDelete','admin/mall.productCategory/categoryDelete');
        //属性集管理
        Route::post('mall/attrNameIndex','admin/mall.attrName/index');
        //属性集添加
        Route::post('mall/attrNameAdd','admin/mall.attrName/attrNameAdd');

        //属性集修改
        Route::post('mall/attrNameEdit','admin/mall.attrName/attrNameEdit');
        //属性集删除
        Route::post('mall/attrNameDelete','admin/mall.attrName/attrNameDelete');
        //属性值管理
        Route::post('mall/attrValIndex','admin/mall.attrVal/index');
        //属性值添加
        Route::post('mall/attrValAdd','admin/mall.attrVal/attrValAdd');
        //属性值修改
        Route::post('mall/attrValEdit','admin/mall.attrVal/attrValEdit');
        //属性值删除
        Route::post('mall/attrValDelete','admin/mall.attrVal/attrValDelete');


        //测试
        Route::get('warehouse/ceshi','admin/warehouse.warehouse/ceshi');
        //添加其他仓库
        Route::post('warehouse/warehouseAdd','admin/warehouse.warehouse/warehouseAdd');
        //编辑其他仓库
        Route::post('warehouse/warehouseEdit','admin/warehouse.warehouse/warehouseEdit');
        //查询门店仓库或者其他仓库
        Route::post('warehouse/warehouseTypeList','admin/warehouse.warehouse/warehouseTypeList');
        //查询总仓库下的商品
        Route::post('warehouse/warehouseProductGeneral','admin/warehouse.warehouse/warehouse_product_general');
        //查询中专仓库下的商品
        Route::post('warehouse/warehouseProductTransfer','admin/warehouse.warehouse/warehouse_product_transfer');
        //查询门店仓库下的商品
        Route::post('warehouse/warehouseProductShop','admin/warehouse.warehouse/warehouse_product_shop');
        //查询其他仓库下的商品
        Route::post('warehouse/warehouseProductOther','admin/warehouse.warehouse/warehouse_product_shop');
        //通过仓库id 查询仓库下的所有商品规格
        Route::post('warehouse/searchWarehouseProduct','admin/warehouse.warehouse/searchWarehouseProduct');
        //仓库库存详情
        Route::post('warehouse/warehouseProduct','admin/warehouse.warehouse/warehouse_product');
        //预警列表
        Route::post('warehouse/warehouseList','admin/warehouse.warehouse/warehouseList');
        //预警列表清仓接口 - 20200422
        Route::post('warehouse/cleanWarehouse','admin/warehouse.warehouse/cleanWarehouse');
        //获取仓库商品详情
        Route::post('warehouse/warehouseSkuDetail','admin/warehouse.warehouse/warehouseGeneralSkuDetail');
        //入库单列表
        Route::post('warehouse/listReceipt','admin/warehouse.warehouseList/approval_list_receipt');
        //补货单列表
        Route::post('warehouse/listReplenishment','admin/warehouse.warehouseList/approval_list_replenishment');
        //出货单列表
        Route::post('warehouse/listOutbound','admin/warehouse.warehouseList/approval_list_outbound');
        //调批单列表
        Route::post('warehouse/listAdjustment','admin/warehouse.warehouseList/approval_list_adjustment');
        //退货单列表
        Route::post('warehouse/listReturn','admin/warehouse.warehouseList/approval_list_return');
        //其他单列表
        Route::post('warehouse/listOther','admin/warehouse.warehouseList/approval_list_other');
        //入库单添加
        Route::post('warehouse/listReceiptAdd','admin/warehouse.warehouseList/approval_add');
        //入库单查看详情
        Route::post('warehouse/listReceiptDetail','admin/warehouse.warehouseList/approval_detail');
        //入库单编辑
        Route::post('warehouse/listReceiptEdit','admin/warehouse.warehouseList/approval_edit');
        //入库单完成入库
        Route::post('warehouse/listReceiptCheck','admin/warehouse.warehouseList/approval_check');
        //商家确认完成入库
        Route::post('warehouse/listReceiptCancel','admin/warehouse.warehouseList/approval_check');
        //新建调批单
        Route::post('warehouse/listAdjustmentAdd','admin/warehouse.warehouseList/approval_add');
        //调批单详情
        Route::post('warehouse/listAdjustmentDetail','admin/warehouse.warehouseList/approval_detail');
        //调批单审核
        Route::post('warehouse/listAdjustmentCheck','admin/warehouse.warehouseList/approval_check');
        //其他审批单添加
        Route::post('warehouse/listOtherAdd','admin/warehouse.warehouseList/approval_add');
        //其他审批单详情
        Route::post('warehouse/listOtherDetail','admin/warehouse.warehouseList/approval_detail');
        //补货单添加
        Route::post('warehouse/listReplenishmentAdd','admin/warehouse.warehouseList/approval_add');
        //仓库操作单
        Route::post('warehouse/listApprovalDetail','admin/warehouse.warehouseList/approval_detail');
        Route::post('warehouse/listApprovalAdd','admin/warehouse.warehouseList/approval_add');
        Route::post('warehouse/listApprovalEdit','admin/warehouse.warehouseList/approval_edit');
        Route::post('warehouse/listApprovalCheck','admin/warehouse.warehouseList/approval_check');

        //查询批次信息
        Route::post('warehouse/getGeneralSkuList','admin/warehouse.warehouseList/getGeneralSkuList');
        //提交调批单
        Route::post('warehouse/setTransferOrder','admin/warehouse.warehouseList/setTransferOrder');
        //查询商家下有库存的商品
        Route::post('warehouse/searchUidHouseProduct','admin/warehouse.warehouseList/searchUidHouseProduct');
        //查询某商品在某仓库下的仓库信息
        Route::post('warehouse/getProductHouseSkuList','admin/warehouse.warehouseList/getProductHouseSkuList');
        //保存某商品在某仓库下的仓库信息
        Route::post('warehouse/setProductHouseSkuList','admin/warehouse.warehouseList/setProductHouseSkuList');
        //导出商品库存模板
        Route::get('warehouse/exportWarehouseExcel','admin/warehouse.warehouse/exportWarehouseExcel');
        //导入商品库存模板
        Route::post('warehouse/addWarehouseExcel','admin/warehouse.warehouse/addWarehouseExcel');
        //查看仓库操作日志
        Route::post('log/getProductLog','admin/warehouse.warehouseLog/getProductLog');

        Route::post('login/authCreate','admin/login/authCreate');

        //发起提现
        Route::post('money/userPayOut','admin/money.money/userPayOut');
        //审核提现
        Route::post('money/setOutAudit','admin/money.money/setOutAudit');

        //[2019-12-24]清仓拼团模块
        //获取存放在仓库中所有的商品
        Route::post('shop/getProductList','admin/shop.ProductOut/getProductList');
        //获取某商品下的所有仓库批次
        Route::post('shop/getWareHouseSkuList','admin/shop.ProductOut/getWareHouseSkuList');
        //[新增/修改]清仓商品
        Route::post('shop/updateProductOut','admin/shop.ProductOut/updateProductOut');
        //删除清仓商品
        Route::post('shop/deleteProductOut','admin/shop.ProductOut/deleteProductOut');
        //获取清仓商品详情
        Route::post('shop/getProductOut','admin/shop.ProductOut/getProductOut');
        //获取清仓商品列表
        Route::post('shop/getProductOutList','admin/shop.ProductOut/getProductOutList');

        //[新增/修改]拼团商品
        Route::post('shop/updateProductSpell','admin/shop.ProductSpell/updateProductSpell');
        //获取拼团商品详情
        Route::post('shop/getProductSpell','admin/shop.ProductSpell/getProductSpell');
        //获取拼团商品列表
        Route::post('shop/getProductSpellList','admin/shop.ProductSpell/getProductSpellList');
        //删除拼团商品
        Route::post('shop/deleteProductSpell','admin/shop.ProductSpell/deleteProductSpell');

        //获取用户发布的大单需求列表
        Route::post('order/getUserDemandList','admin/shop.order/getUserDemandList');
    });
    Route::group('api',function (){
        //通过手机号获取验证码
        Route::post('login/userSendCode','api/Login.Login/getCode');
        //通过手机号登录
        Route::post('login/codeLogin','api/Login.Login/codeLogin');
        //通过退出登录
        Route::post('user/logOut','api/User.User/logOut');

        //基础配置获取
        //获取轮播图
        Route::post('config/getAppCarousel','api/Config.Carousel/getAppCarousel');
        //获取平台协议
        Route::post('config/getAppAdvertisement','api/Config.Carousel/getAppAdvertisement');
        //获取平台
        Route::post('config/getConfig','api/Config.Config/getConfig');
        //获取平台客服
        Route::post('config/getContactNumber','api/Config.Config/getContactNumber');
        //获取协议
        Route::post('config/getAgreement','api/Config.Config/getAgreement');

        //获取钱包模块config
        Route::post('money/getMoneyConfig','api/Config.Config/getMoneyConfig');
        //获取邀请页面详情
        Route::post('money/getInviteInfo','api/Money.Money/getInviteInfo');
        //获取钱包明细
        Route::post('money/getMoney','api/Money.Money/getMoney');
        //获取佣金账单明细
        Route::post('money/getMoneyInviteRecord','api/Money.Money/getMoneyInviteRecord');
        //获取提现账单明细
        Route::post('money/getMoneyOutRecord','api/Money.Money/getMoneyOutRecord');
        //查看我的下级
        Route::post('money/getInviteUser','api/Money.Money/getInviteUser');
        //获取手机验证码
        Route::post('money/getCode','api/Money.Money/getCode');
        //提现账单申请
        Route::post('money/insertOutRecord','api/Money.Money/insertOutRecord');


        //获取新闻列表
        Route::post('news/getNewsList','api/News.News/getNewsList');
        Route::post('news/getNewsCategory','api/News.News/getNewsCategory');
        Route::post('news/getNewsDetail','api/News.News/getNewsDetail');
        Route::get('news/getContentDetail','api/News.News/getContentDetail');
        Route::get('news/getCeshi','api/News.News/getCeshi');
        Route::get('news/ceshiaaa','api/News.News/ceshiaaa');
        //获取商城三级分类
        Route::post('product/getProductCategoryData','api/Product.ProductCategory/categoryList');
        //通过一级分类id 获取二三级分类
        Route::post('product/getCategoryByLevelOne','api/Product.ProductCategory/getCategoryByLevelOne');
        //交易大厅商品列表
        Route::post('product/getTradeList','api/Product.TradeHall/TradeList');
        //交易大厅区域数组
        Route::post('product/TradeAreaList','api/Product.TradeHall/TradeAreaList');
        //交易大厅区域下的产品列表
        Route::post('product/TradeAreaProduct','api/Product.TradeHall/TradeAreaProduct');
        //交易大厅商品详情
        Route::post('product/productDetail','api/Product.Product/productDetail');
        //获取商品详情富文本
        Route::get('product/getProductDescription','api/Product.Product/getProductDescription');
        //商品下的全部评价
        Route::post('product/productAllReview','api/Product.Product/productAllReview');
        //普通商品列表
        Route::post('product/commonProduct','api/Product.Product/commonProduct');
        //【扫码】根据国际编码获取商品信息
        Route::post('product/getProductByInter','api/Product.Product/getProductByInter');
        //线上商家列表
        Route::post('shop/onlineShop','api/Shop.ShopList/onlineShop');
        //品牌店列表
        Route::post('shop/brandShop','api/Shop.ShopList/brandShop');
        //商家详情列表
        Route::post('shop/shopDetail','api/Shop.ShopList/shopDetail');
        //商家下的商品分组
        Route::post('shop/shopProductGroup','api/Shop.ShopList/shopProductGroup');
        //查询用户是否申请商家的状态
        Route::post('shop/shopApplyStatus','api/Shop.shop/shopApplyStatus');
        //商家上传图片
        Route::post('shop/shopUpload','api/Shop.shop/shopUpload');
        //查询商家主营类目
        Route::post('shop/shopCategory','api/Shop.Shop/shopCategory');
        //添加商家
        Route::post('shop/shopCreate','api/Shop.Shop/shopCreate');
        //商家付款
        Route::post('shop/shopPay','api/Shop.Shop/shopPay');
        //获取省份
        Route::post('address/province','api/Config.Address/province');
        //通过省份ID获取下级城市
        Route::post('address/city','api/Config.Address/city');
        //通过城市ID获取下级地区
        Route::post('address/area','api/Config.Address/area');

        //[新]获取新三级联动json
        Route::post("address/getAreaList","api/Config.Address/getAreaList");
        //获取省份
        Route::post('address/provinceN','api/Config.Address/provinceN');
        //通过省份ID获取下级城市
        Route::post('address/cityN','api/Config.Address/cityN');
        //通过城市ID获取下级地区
        Route::post('address/areaN','api/Config.Address/areaN');



        //用户更改手机号
        Route::post('user/userChangePhone','api/User.User/userChangePhone');
        //获取用户信息
        Route::post('user/userDemand','api/User.User/userDemand');
        //获取用户信息
        Route::post('user/UserDefault','api/User.Address/UserDefault');
        //用户user的地址
        Route::post('user/userInfo','api/User.User/userInfo');
        //用户user的地址
        Route::post('user/UserAddressList','api/User.Address/UserAddressList');
        //用户地址添加
        Route::post('user/UserAddressAdd','api/User.Address/UserAddressAdd');
        //用户地址修改
        Route::post('user/UserAddressEdit','api/User.Address/UserAddressEdit');
        //用户地址删除
        Route::post('user/UserAddressDelete','api/User.Address/UserAddressDelete');
        //用户申请企业号
        Route::post('user/userEnterpriseCreate','api/User.User/userEnterpriseCreate');
        //用户意见反馈
        Route::post('user/userFeedback','api/User.User/userFeedback');
        //用户加载会员升级列表
        Route::post('user/userMoneyCard','api/User.User/userMoneyCard');
        //用户升级会员列表
        Route::post('user/userCreateMoneyCard','api/User.User/userCreateMoneyCard');
        //查看商家下订单是否支付过
        Route::post('user/checkOrderStatus','api/User.User/checkOrderStatus');
        //用户选择充值
        Route::post('user/userCreateMoneyOrder','api/User.User/userCreateMoneyOrder');
        //用户发布需求查询详情
        Route::post('user/userProductDetail','api/User.User/productDetail');
        //用户发布需求
        Route::post('user/productCreateDemand','api/User.User/productCreateDemand');
        //获取用户是否收藏某个商品
        Route::post('user/userProductCollectStatus','api/User.User/userProductCollectStatus');
        //用户的收藏操作
        Route::post('user/userProductCollect','api/User.User/userProductCollect');
        //获取用户的收藏列表
        Route::post('user/userCollectList','api/User.User/userCollectList');
        //用户加入购物车
        Route::post('user/userAddCart','api/User.ProductCart/userAddCart');
        //用户编辑购物车数量
        Route::post('user/userChangeCart','api/User.ProductCart/userChangeCart');
        //用户购物车列表
        Route::post('user/userCartList','api/User.ProductCart/userCartList');
        //用户删除购物车
        Route::post('user/userDeleteCart','api/User.ProductCart/userDeleteCart');
        //用户结算前判断购物车
        Route::post('user/userCheckCart','api/User.ProductCart/userCheckCart');
        //用户结算前判断购物车
        Route::post('user/userBuyNow','api/User.ProductCart/userBuyNow');
        //用户结算购物车的列表
        Route::post('user/settlementByCart','api/User.ProductOrder/settlementByCart');
        //普通商品立即结算
        Route::post('user/settlementRightNow','api/User.ProductOrder/settlementRightNow');
        //用户创建订单
        Route::post('user/userCreateOrder','api/User.ProductOrder/userCreateOrder');
        //用户支付订单
        Route::post('user/userPayOrder','api/User.ProductOrder/userPayOrder');
        //用户订单列表
        Route::post('user/userOrderList','api/User.ProductOrder/userOrderList');
        //用户取消订单
        Route::post('user/userCancelOrder','api/User.ProductOrder/userCancelOrder');
        //用户确认收货
        Route::post('user/userSureOrder','api/User.ProductOrder/userSureOrder');
        //用户评价
        Route::post('user/userReviewOrder','api/User.ProductOrder/userReviewOrder');
        //用户申请售后
        Route::post('user/userApplyReturn','api/User.ProductOrder/userApplyReturn');
        //用户售后列表
        //用户查看订单详情
        Route::post('user/userOrderDetail','api/User.ProductOrder/userOrderDetail');
        //用户确认收货
        Route::post('user/userSureOrder','api/User.ProductOrder/userSureOrder');
        //用户评价订单
        Route::post('user/userReviewOrder','api/User.ProductOrder/userReviewOrder');
        //用户申请售后
        Route::post('user/userApplyReturn','api/User.ProductOrder/userApplyReturn');
        //用户申请退款的列表
        Route::post('user/userReturnOrderList','api/User.ProductOrder/userReturnOrderList');
        //用户确认 退款订单的发货
        Route::post('user/userReturnOrderSure','api/User.ProductOrder/userReturnOrderSure');
        //用户退货订单的详情
        Route::post('user/userReturnOrderDetail','api/User.ProductOrder/userReturnOrderDetail');

        //2019-12-24新模块
        //获取清仓商品列表
        Route::post('product/getProductOutList','api/Product.ProductOut/getProductOutList');
        //获取清仓商品详情
        Route::post('product/getProductOut','api/Product.ProductOut/getProductOut');
        //清仓商品立即结算
        Route::post('user/settlementOut','api/User.ProductOrder/settlementOut');
        //获取拼团商品列表
        Route::post('product/getProductSpellList','api/Product.ProductSpell/getProductSpellList');
        //获取拼团列表详情
        Route::post('product/getProductSpell','api/Product.ProductSpell/getProductSpell');
        //获取当前商品所有团
        Route::post('product/getOrderSpellList','api/Product.ProductSpell/getOrderSpellList');
        //拼团商品立即结算
        Route::post('user/settlementSpell','api/User.ProductOrder/settlementSpell');

        //回调模块
        //阿里云回调 APP支付回调
        Route::rule('notify/aliNotify','api/Notify/aliNotify',"GET|POST");
        //阿里云PC端支付回调
        Route::rule('notify/aliWebNotify','api/Notify/aliWebNotify',"GET|POST");
        //微信APP回调
        Route::rule('notify/wxAppNotify','api/Notify/wxAppNotify',"GET|POST");
        //微信回调
        Route::rule('notify/wxNotify','api/Notify/wxNotify',"GET|POST");
        //[未完成]浙商银行支付
        Route::rule('notify/pay','api/Notify/pay',"GET|POST");

        //定时任务
        //[每小时执行]7天自动收货
        Route::rule('task/updateOrderSevenDay','api/Task/updateOrderSevenDay',"GET|POST");
        //[每小时执行]3天自动返佣
        Route::rule('task/updateOrderThreeDay','api/Task/updateOrderThreeDay',"GET|POST");
        //[每小时执行]更新用户会员到期情况
        Route::rule('task/updateUserType','api/Task/updateUserType',"GET|POST");

        //[每分钟执行]订单30分钟未支付自动取消
        Route::rule('task/updateCancelOrder','api/Task/updateCancelOrder',"GET|POST");
    });
})->allowCrossDomain();
return [

];
